{"ast":null,"code":"export var browserRouteAuth='/auth';export var browserRouteHome='/im/';export var baseUrl=function baseUrl(){return\"\".concat(process.env.REACT_APP_BACKEND_URL+'/api/v1/');};export var exceptionUrl=function exceptionUrl(){return baseUrl()+'auth/';};/* <Security API */export var signUp=function signUp(){return baseUrl()+'auth/signUp';};export var signIn=function signIn(){return baseUrl()+'auth/login';};export var logout=function logout(){return baseUrl()+'auth/logout';};export var forgotPassword=function forgotPassword(){return baseUrl()+'auth/forgot_password/';};export var refreshToken=function refreshToken(){return baseUrl()+'auth/refresh';};/* Security API> */ /* <User API */export var profile=function profile(){return baseUrl()+'user/profile/';};export var changeProfile=function changeProfile(){return baseUrl()+'user/changeProfile/';};export var uploadAvatar=function uploadAvatar(){return baseUrl()+'user/uploadAvatar/';};export var findUsers=function findUsers(){return baseUrl()+'user/find';};export var deleteUser=function deleteUser(){return baseUrl()+'user/delete';};/* User API> */ /* <Contact API */export var getContacts=function getContacts(){return baseUrl()+'user/getContacts/';};export var addContact=function addContact(otherUserId){return baseUrl()+'user/addContact/'+otherUserId;};export var acceptContact=function acceptContact(contactId){return baseUrl()+'user/acceptContact/'+contactId;};export var deleteContact=function deleteContact(contactId){return baseUrl()+'user/delete_contact/'+contactId;};/* Contact API> */ /* <ReadMessage API */export var deleteReadMessages=function deleteReadMessages(){return baseUrl()+'readMessage/remove';};export var addReadMessage=function addReadMessage(){return baseUrl()+'readMessage/add';};/* ReadMessage API> */ /* <Message API */export var deleteMessages=function deleteMessages(){return baseUrl()+'message/remove';};export var addMessage=function addMessage(){return baseUrl()+'message/addMessage';};export var updateMessage=function updateMessage(){return baseUrl()+'message/updateMessage';};export var searchMessage=function searchMessage(){return baseUrl()+'message/searchMessage';};/* Message API> */ /* <Membership API */export var addMembershipForMultiChat=function addMembershipForMultiChat(userId,chatId){return baseUrl()+\"membership/add/userId/\".concat(userId,\"/chatId/\").concat(chatId);};export var updateNotification=function updateNotification(chatId,notification){return baseUrl()+\"membership/update/chatId/\".concat(chatId,\"/notification/\").concat(notification);};export var deleteMembership=function deleteMembership(membershipId){return baseUrl()+\"membership/remove/\".concat(membershipId);};/* Membership API> */ /* <Content API */export var deleteContent=function deleteContent(contentId){return baseUrl()+\"content/remove/\".concat(contentId);};export var uploadImage=function uploadImage(){return baseUrl()+'content/upload/image';};export var uploadFile=function uploadFile(){return baseUrl()+'content/upload/file';};/* Content API> */ /* <Chat API */export var getChats=function getChats(){return baseUrl()+'chats/';};export var newMultiChat=function newMultiChat(){return baseUrl()+'chats/newMultiChat';};export var updateMultiChat=function updateMultiChat(){return baseUrl()+'chats/updateMultiChat';};export var uploadAvatarForChat=function uploadAvatarForChat(chatId){return baseUrl()+\"chats/uploadAvatar/\".concat(chatId);};export var getChatOrNew=function getChatOrNew(otherUserId){return baseUrl()+\"chats/getChat/otherUser/\".concat(otherUserId);};export var deleteChat=function deleteChat(chatId){return baseUrl()+\"chats/remove/{chatId}\";};/* Chat API> */","map":{"version":3,"names":["browserRouteAuth","browserRouteHome","baseUrl","process","env","REACT_APP_BACKEND_URL","exceptionUrl","signUp","signIn","logout","forgotPassword","refreshToken","profile","changeProfile","uploadAvatar","findUsers","deleteUser","getContacts","addContact","otherUserId","acceptContact","contactId","deleteContact","deleteReadMessages","addReadMessage","deleteMessages","addMessage","updateMessage","searchMessage","addMembershipForMultiChat","userId","chatId","updateNotification","notification","deleteMembership","membershipId","deleteContent","contentId","uploadImage","uploadFile","getChats","newMultiChat","updateMultiChat","uploadAvatarForChat","getChatOrNew","deleteChat"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/src/routes.ts"],"sourcesContent":["export const browserRouteAuth = '/auth';\nexport const browserRouteHome = '/im/';\n\nexport const baseUrl = () => {\n    return `${process.env.REACT_APP_BACKEND_URL + '/api/v1/'}`;\n}\n\nexport const exceptionUrl = () => {\n    return baseUrl() + 'auth/';\n}\n\n/* <Security API */\nexport const signUp = () => {\n    return baseUrl() + 'auth/signUp';\n}\n\nexport const signIn = () => {\n    return baseUrl() + 'auth/login';\n}\n\nexport const logout = () => {\n    return baseUrl() + 'auth/logout';\n}\n\nexport const forgotPassword = () => {\n    return baseUrl() + 'auth/forgot_password/';\n}\n\nexport const refreshToken = () => {\n    return baseUrl() + 'auth/refresh';\n}\n/* Security API> */\n\n/* <User API */\nexport const profile = () => {\n    return baseUrl() + 'user/profile/';\n}\n\nexport const changeProfile = () => {\n    return baseUrl() + 'user/changeProfile/';\n}\n\nexport const uploadAvatar = () => {\n    return baseUrl() + 'user/uploadAvatar/';\n}\n\nexport const findUsers = () => {\n    return baseUrl() + 'user/find';\n}\n\nexport const deleteUser = () => {\n    return baseUrl() + 'user/delete';\n}\n/* User API> */\n\n/* <Contact API */\nexport const getContacts = () => {\n    return baseUrl() + 'user/getContacts/';\n}\n\nexport const addContact = (otherUserId: string) => {\n    return baseUrl() + 'user/addContact/' + otherUserId;\n}\n\nexport const acceptContact = (contactId: string) => {\n    return baseUrl() + 'user/acceptContact/' + contactId;\n}\n\nexport const deleteContact = (contactId: string) => {\n    return baseUrl() + 'user/delete_contact/' + contactId;\n}\n/* Contact API> */\n\n/* <ReadMessage API */\nexport const deleteReadMessages = () => {\n    return baseUrl() + 'readMessage/remove';\n}\n\nexport const addReadMessage = () => {\n    return baseUrl() + 'readMessage/add';\n}\n/* ReadMessage API> */\n\n/* <Message API */\nexport const deleteMessages = () => {\n    return baseUrl() + 'message/remove';\n}\n\nexport const addMessage = () => {\n    return baseUrl() + 'message/addMessage';\n}\n\nexport const updateMessage = () => {\n    return baseUrl() + 'message/updateMessage';\n}\n\nexport const searchMessage = () => {\n    return baseUrl() + 'message/searchMessage';\n}\n/* Message API> */\n\n/* <Membership API */\nexport const addMembershipForMultiChat = (userId: string, chatId: string) => {\n    return baseUrl() + `membership/add/userId/${userId}/chatId/${chatId}`;\n}\n\nexport const updateNotification = (chatId: string, notification: boolean) => {\n    return baseUrl() + `membership/update/chatId/${chatId}/notification/${notification}`;\n}\n\nexport const deleteMembership = (membershipId: string) => {\n    return baseUrl() + `membership/remove/${membershipId}`;\n}\n/* Membership API> */\n\n/* <Content API */\nexport const deleteContent = (contentId: string) => {\n    return baseUrl() + `content/remove/${contentId}`;\n}\n\nexport const uploadImage = () => {\n    return baseUrl() + 'content/upload/image';\n}\n\nexport const uploadFile = () => {\n    return baseUrl() + 'content/upload/file';\n}\n/* Content API> */\n\n/* <Chat API */\nexport const getChats = () => {\n    return baseUrl() + 'chats/';\n}\n\nexport const newMultiChat = () => {\n    return baseUrl() + 'chats/newMultiChat';\n}\n\nexport const updateMultiChat = () => {\n    return baseUrl() + 'chats/updateMultiChat';\n}\n\nexport const uploadAvatarForChat = (chatId: string) => {\n    return baseUrl() + `chats/uploadAvatar/${chatId}`;\n}\n\nexport const getChatOrNew = (otherUserId: string) => {\n    return baseUrl() + `chats/getChat/otherUser/${otherUserId}`;\n}\n\nexport const deleteChat = (chatId: string) => {\n    return baseUrl() + `chats/remove/{chatId}`;\n}\n/* Chat API> */"],"mappings":"AAAA,MAAO,IAAMA,iBAAgB,CAAG,OAAO,CACvC,MAAO,IAAMC,iBAAgB,CAAG,MAAM,CAEtC,MAAO,IAAMC,QAAO,CAAG,QAAVA,QAAO,EAAS,CACzB,gBAAUC,OAAO,CAACC,GAAG,CAACC,qBAAqB,CAAG,UAAU,EAC5D,CAAC,CAED,MAAO,IAAMC,aAAY,CAAG,QAAfA,aAAY,EAAS,CAC9B,MAAOJ,QAAO,EAAE,CAAG,OAAO,CAC9B,CAAC,CAED,mBACA,MAAO,IAAMK,OAAM,CAAG,QAATA,OAAM,EAAS,CACxB,MAAOL,QAAO,EAAE,CAAG,aAAa,CACpC,CAAC,CAED,MAAO,IAAMM,OAAM,CAAG,QAATA,OAAM,EAAS,CACxB,MAAON,QAAO,EAAE,CAAG,YAAY,CACnC,CAAC,CAED,MAAO,IAAMO,OAAM,CAAG,QAATA,OAAM,EAAS,CACxB,MAAOP,QAAO,EAAE,CAAG,aAAa,CACpC,CAAC,CAED,MAAO,IAAMQ,eAAc,CAAG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